package com.yyx.beautifylib.tag.utils;

import android.content.Context;

/**
 * @Desc:
 * @Author:  86133
 * @Time:  2020/4/11
 */
public class DipConvertUtils {

    public static int dip2px(Context context, float dpValue) {
        final float scale = context.getResources().getDisplayMetrics().density;
        return (int) (dpValue * scale + 0.5f);
    }
}
